/**
* @file  index
* @author xiao_xie
* @date 2025-03-27
*/


import React from 'react';
import useComponentStore from '../../store';
import Preview from './Preview';
import Dev from './Dev';

const index: React.FC = () => {
    const { editMode } = useComponentStore();
    return (
        <div>
            {editMode ? < Dev /> : <Preview />}
        </div>
    );
};
export default index;
